package com.example.sync.sync;

import lombok.extern.slf4j.Slf4j;
import org.openjdk.jol.info.ClassLayout;

/**
 * @program: Sync
 * @description: a
 * @author: chaidl  ！
 * @create: 2022-03-07 14:55
 */
@Slf4j
public class 偏向锁延迟 {
    public static void main(String[] args) throws InterruptedException {
        log.debug(ClassLayout.parseInstance(new Object()).toPrintable());
        Thread.sleep(4000);
        // Object obj=new Object();
        // obj.hashCode();
        log.debug(ClassLayout.parseInstance(new Object().hashCode()).toPrintable());
    }
}
